package io.renren.common.utils.sftp;

import java.util.HashMap;
import java.util.Map;

/**
 * 进程单例类
 */
public class ScheduleSingLeTon {
    private static final ScheduleSingLeTon INSTEANS = new ScheduleSingLeTon();

    private Map<String,Object> fileMap = new HashMap<>();

    private String fileName;    // 上传的文件名

    private long transfered;    //记录已传输的数据总大小

    private long fileSize;      //记录文件总大小

    private String plan ="0.00"; //进度

    private boolean isEnd = false;

    public Map<String,Object> getFileMap() { return this.fileMap; }

    public void setFileMap(Map<String,Object> fileMap) { this.fileMap = fileMap;}

    public String getFileName() {return this.fileName;}

    public void setFileName(String fileName) {this.fileName = fileName;}

    public long getTransfered() {
        return transfered;
    }

    public void setTransfered(long transfered) {
        this.transfered = transfered;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public String getPlan() {
        return plan;
    }

    public void setPlan(String plan) {
        this.plan = plan;
    }

    public boolean getEnd() {
        return isEnd;
    }

    public void setEnd(boolean isEnd) {
        this.isEnd = isEnd;
    }

    private ScheduleSingLeTon(){

    }
    public static ScheduleSingLeTon getInsteans(){
        return INSTEANS;
    }
}

